package com.springcloud.feignclient.web.service;

import com.springcloud.feignclient.web.dao.UserDao;
import com.springcloud.feignclient.web.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liq
 * @Title: UserService
 * @ProjectName lcn-demo
 * @Description: TODO
 * @date 2019-06-0409:21
 */
@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public int insert(User user ){
        return userDao.insert(user.getName(),user.getUsername(),user.getPassword());
    }
}
